package com.design.strategy.singleton;

import lombok.Data;

import java.util.List;

@Data
public class ConcretePrototype implements Cloneable {

    private int age;

    private String name;

    private List<String> hobbies;


    private static ConcretePrototype instance = new ConcretePrototype();


    private ConcretePrototype() {

    }

    public static ConcretePrototype getInstance() {
        return instance;
    }


    @Override
    protected ConcretePrototype clone() {
        return instance;
    }
}
